@COLOR 1 15
Language SLANG

Operators:

FOR <cycle variable> TO <upper limit>
............
NEXT

Step is 1. Nested cycles are legal.

GOTO <label>
Pass control to the line
!<label name>
Example:
GOTO l
......
!l
......

IF <condition> THEN <action>
If succes, pass control to "action", else
to the nest line
Example:
IF a > 3 THEN GOTO label1
GOTO label2


Subroutines.
    Begin with alpha. Terminated with RETURN.
Main program terminated with END. Could get
list of arguments and return a value.
Example:
MIN(x, y)
    IF x < y THEN y = x
    x = y
RETURN x

PLAY("<file name>") pass control to the external
file. Return control back after END statement.

OOPic operators.

LINE(x1, y1, x2, y2) draws a line.
LINETO(x2, y2) draws a line from current position
to the given point.
ELLIPSE(x1, y1, startangle, endangle, xradius, yradius)
    draws an ellipse or sector.
RECTANGLE(x1, y1, x2, y2) draws rectangle.
POLY(i, x1, y1... xi, yi) draws polygon.
MOVETO(x, y) moves current position to the point.
ZOOM(scalex,scaley) zoom all the following output.
ROTATE(alpha, x, y) rotate all output exept ellipses.

